<section class="section {page->class}">
	<h2 class="hide">{page->title}</h2>
	<script>
		$(function() {
			$("#{module}_category_modify").validate({
				submitHandler : function(form) {
					// ajax로 등록후 list 페이지 새로 고침
					$.ajax({
						 url : form.action
						,data : $(form).serialize()
						,success:function(data){
							if(data.code == mesg.success) {
								// 카테고리 창 새로고침
								_loadDialogFormName('category').load(data.return_url);
								
								// 현재창 닫기
								sagapo.dialog_close('category_modify');
							} else {
								alert(data.msg);
								
								$("#{module}_name").focus();
							}
							
							return false;
						}
					});
				}
			});
		});
	</script>
	<form name="{module}_category_modify" id="{module}_category_modify" method="post" action="{action}/doCategoryModify">
		<table class="table">
			<caption>
				{page->title}
			</caption>
			<colgroup>
				<col class="add" />
				<col />
			</colgroup>
			<tbody>
				<tr>
					<th scope="row" class="txt_right br"><label for="{module}_name">카테고리명</label></th>
					<td>
						<input type="hidden" name="{module}_bseq" value="{result->ba_seq}" />
						<input type="hidden" name="{module}_seq" value="{result->bc_seq}" />
						<input type="text" name="{module}_name" id="{module}_name" class="required" placeholder="카테고리명" value="{result->bc_name}" />
					</td>
				</tr>
			</tbody>
		</table>
		<div class="button_area">
			<button type="submit">전송</button>
		</div>
	</form>
</section>